import Vue from "vue";
import VueRouter from "vue-router";
import Find from "../views/Find.vue";
import My from "../views/My.vue";
import Friend from "../views/Friend.vue";
import NotFound from "../views/NotFound.vue";

Vue.use(VueRouter)
const router=new VueRouter({
  routes:[
    {path:'/find', component:Find,name:'find'},
    {path:'/my', component:My,name:'my'},
    {path:'/part', component:Friend,name:'friend'},
    // 重定向
    // {path:'/', redirect:'/my'},
    {path:'*',component:NotFound}
  ],
  linkActiveClass:"active",
  linkExactActiveClass:'active',
  mode:'history'
})
// 导出
export default router